/**
 * 供应商（添加|修改）supplierOption.js
 * 版本号： v1.0.0
 */
$(function () {
    //限制字段输入长度
    limitFieldLength();
    //点击保存按钮
    $('#optionSupplier').bind('click', function(){
        if($("#supplier_form").form("validate")){
            preventSubmit('supplier_form','optionSupplier');
            var params = $("#supplier_form").serialize();
            $.ajax({
                url: CONTEXT_PATH + "/supplier/save.do",
                data: params,
                type: "post",
                dataType:'json',
                success: function (data) {
                    var url = CONTEXT_PATH + "/supplier/index.do";
                    saveJump(data,url);
                }
            })
        }
    })
})






